# encoding: utf-8
"""

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    created by lei.chang on '21/02/2022'
    comment: 项目工程配置文件
"""
import logging
from logs import LOG_FOLDER


class Config:
    """
    """
    # DB
    DB_OPTIONS = {
        'host': '8.210.208.94',
        'port': '5432',
        'user': 'lane',
        'password': '1awC1CpqZ0OjE93W',
        'db': 'digiccy'
    }

    # okex
    OKEX_OPTIONS = {
        'real': {
            'api_key': 'a78b81e3-8775-4041-bc48-acc66ff91f74',
            'api_secret_key': '1B0123588D93DAB3203828134650CF9D',
            'passphrase': 'cl198588CL#'
        },
        'simulate': {
            'api_key': 'b9022bee-4f71-427d-93b1-b2bc7fb9da8c',
            'api_secret_key': 'CAE645071AA59D6223E768D1C97FB23C',
            'passphrase': 'cl198588CL#'
        },
        'domain': 'http://8.210.208.94:8080'
    }

    # 项目日志级别
    LOGGER_LEVEL = logging.INFO

    # 日志是否打印控制台
    DISPLAY_CONSOLE = False

    # 项目日志对象配置
    LOGGER = {
        'file_name': 'logger.log',
        'file_path': LOG_FOLDER,
        'level': logging.DEBUG,
        'pattern': '%(log_color)s【%(levelname)s】- %(asctime)s %(message)s'
    }
